60 WDT_A_hold(WDT_A_BASE);
92 Comp_D_initParam
param = {0};
93 param.positiveTerminalInput = COMP_D_INPUT13;
94 param.negativeTerminalInput = COMP_D_VREF;
95 param.outputFilterEnableAndDelayLevel = COMP_D_FILTEROUTPUT_OFF;
96 param.invertedOutputPolarity = COMP_D_NORMALOUTPUTPOLARITY;
97 Comp_D_init(COMP_D_BASE, &
param);
107 Comp_D_setReferenceVoltage(COMP_D_BASE,
114 Comp_D_setInterruptEdgeDirection(COMP_D_BASE, COMP_D_RISINGEDGE);
117 Comp_D_clearInterrupt(COMP_D_BASE, (COMP_D_INTERRUPT_FLAG + COMP_D_INTERRUPT_FLAG_INVERTED_POLARITY));
124 Comp_D_clearInterrupt(COMP_D_BASE,
128 Comp_D_enableInterrupt(COMP_D_BASE,
133 Comp_D_enable(COMP_D_BASE);
136 __bis_SR_register(LPM4_bits + GIE);
147 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
148 #pragma vector=COMP_D_VECTOR
150 #elif defined(__GNUC__)
151 __attribute__((interrupt(COMP_D_VECTOR)))
156 Comp_D_toggleInterruptEdgeDirection(COMP_D_BASE);
159 Comp_D_clearInterrupt(COMP_D_BASE, COMP_D_INTERRUPT_FLAG);
167 GPIO_toggleOutputOnPin(
MPU_initThreeSegmentsParam param
GPIO_setOutputLowOnPin(GPIO_PORT_LED1|GPIO_PORT_LED2, GPIO_PIN_LED1|GPIO_PIN_LED2)